package designpattern.builder.guitar;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 刘牌
 * @Date: 2021/12/16/11:18
 * @Description:
 */
public class GuitarBuilder {
    Guitar guitar = new Guitar();

    public GuitarBuilder guitarString(String guitarString) {
        guitar.setGuitarString(guitarString);
        return this;
    }

    public GuitarBuilder stringButton(String stringButton) {
        guitar.setStringButton(stringButton);
        return this;
    }

    public GuitarBuilder panel(String panel) {
        guitar.setPanel(panel);
        return this;
    }

    public GuitarBuilder pickup(String pickup) {
        guitar.setPickup(pickup);
        return this;
    }

    public GuitarBuilder size(float size) {
        guitar.setSize(size);
        return this;
    }

    public GuitarBuilder fingerboard(String fingerboard) {
        guitar.setFingerboard(fingerboard);
        return this;
    }

    public Guitar build() {
        return guitar;
    }
}
